package com.gsx.controller;

import com.gsx.bean.Category;
import com.gsx.service.CategorySevice;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description TODO
 * @Authoe gsx
 * @Date 2021/04/06 下午 7:13
 **/
@Controller
@RequestMapping("/category")
public class CategoryController {
    @Resource
    private CategorySevice categorySevice;
    @ResponseBody
    @RequestMapping("/categoryAll")
    public List<Category> getAll(){
        return categorySevice.getCategoryAll();
    }
}
